﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessLibrary.DAL;

namespace BusinessLibrary.BLL
{
   public class Emplois_enseignant
    {
        public int Id { get; set; }
        public String Annee_scolaire { get; set; }
        public String Jour { get; set; }
        public DateTime Heure_deb { get; set; }
        public DateTime Heure_deb_group2 { get; set; }
        public DateTime Heure_fin { get; set; }
        public DateTime Heure_fin_group2 { get; set; }
        public String Salle { get; set; }
        public Classe classe { get; set; }
        public Matiere matiere { get; set; }


        #region methodes
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        /// 
        public static Emplois_enseignant GetEmplois_enseignantById(int id)
        {
            return SqlEmplois_enseignant.GetEmplois_enseignantById(id);
        }


        public static int deleteEmplois_enseignant(int id)
        {
            return SqlEmplois_enseignant.deleteEmplois_enseignant(id);
        }


        public static int SaveEmplois_enseignant(Emplois_enseignant EE)
        {
            int nbRow;
            if ((nbRow = SqlEmplois_enseignant.updateEmplois_enseignant(EE)) > 0)
                return nbRow;
            else
                return SqlEmplois_enseignant.insertEmplois_enseignant(EE);
        }

        #endregion

    }
}